# filename: example9_2

def tpl_sum(t):
    result = 0
    for i in t:
        result += i
    return result


print("The sum of elements from (1, 2, 3, 4) is:",
      tpl_sum((1, 2, 3, 4)))
print("The sum of elements from [3, 4, 5, 6] is:",
      tpl_sum([3, 4, 5, 6]))
print("The sum of elements from {1, 2, 3, 3} is:",
      tpl_sum({1, 2, 3, 3}))
